<html>
<head><meta charset="utf-8"><title>test failure on wasm · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html">test failure on wasm</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243295097"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/test%20failure%20on%20wasm/near/243295097" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> The 8472 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html#243295097">(Jun 20 2021 at 09:29)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/86452#issuecomment-864489332">https://github.com/rust-lang/rust/pull/86452#issuecomment-864489332</a></p>
<p>The newly added test passes on x86_64-unknown-linux-gnu but fails on wasm32-unknown-unknown. It's core code so there shouldn't be anything platform-specific. Any pointers how to investigate this?</p>



<a name="243296104"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/test%20failure%20on%20wasm/near/243296104" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html#243296104">(Jun 20 2021 at 10:01)</a>:</h4>
<p>Wasm doesn't support panics.</p>



<a name="243296109"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/test%20failure%20on%20wasm/near/243296109" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> The 8472 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html#243296109">(Jun 20 2021 at 10:02)</a>:</h4>
<p>ah. then i'll just exclude the test</p>



<a name="243296152"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/test%20failure%20on%20wasm/near/243296152" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html#243296152">(Jun 20 2021 at 10:02)</a>:</h4>
<p>I think you can use <code>#[should_panic = "foo"]</code> and then <code>panic!("foo");</code> at the end to exclude it on all platforms that don't support panicking.</p>



<a name="243296278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/test%20failure%20on%20wasm/near/243296278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> The 8472 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/test.20failure.20on.20wasm.html#243296278">(Jun 20 2021 at 10:06)</a>:</h4>
<p>there's <code>#[cfg(panic = "unwind")]</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>